package com.yanqu.road.server.cmd.sync;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.C_SERVICE_RESP_HANDLE, desc = "请求返回")
public class CenterServerRespHandleCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        MessageHelper.getSyncMessageCaller().receiveMsgHandler(packet);
    }

    @Override
    public void sendData() {

    }
}
